package com.uniledger.exchange.push;

import android.support.v4.app.NotificationCompat;

import com.uniledger.exchange.R;
import com.uniledger.exchange.UniApp;

import org.joda.time.DateTime;

/**
 * @file FileName
 * Uni-Exchange
 *  * liqy
 * Copyright 星期四 YourCompany.
 */
public class MockPush {

    public int nid;

    public String userDisplayName;
    public String sender;

    public String contentTitle;
    public String contentText;

    public int numberOfNewMessages;
    public long timestamp;

    public String channelId;
    public int channelLockScreenVisibility;

    private MockPush() {
        this.timestamp = DateTime.now().getMillis();
        this.numberOfNewMessages = 1;//维护动态增加
    }

    public static MockPush buildTransferPush(String id, String title, String text) {
        MockPush push = new MockPush();
        push.channelId = "transfer_" + id;
        push.channelLockScreenVisibility = NotificationCompat.VISIBILITY_PUBLIC;
        push.nid = NotifyUtil.NOTIFICATION_TRANSFER_SCAN_ID;
        push.contentTitle = title;
        push.contentText = text;

        push.userDisplayName = "Me";

        push.sender = UniApp.getInstance().getResources().getString(R.string.notification_sender);

        return push;
    }


}
